<?php 
	include_once '../autoload.php';
	include_once "../verifica.php";
	verifica();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cerberus OS - Clientes</title>
<link rel="stylesheet" type="text/css" href="css/estilos.css">
	<script src="js/jquery.js" type="text/javascript"></script>  
            <script type="text/javascript" src="js/jquery.validate.js"></script>
            <script type="text/javascript" src="js/valida.js"></script>
            <script type="text/javascript" src="js/jquery.mask.js"></script>
            
            <script type="text/javascript">
                $(document).ready(function(){
                       // CONFIGURA A VALIDACAO DO FORMULARIO
                       $("#cusuario").validate({
                          rules: {
                             nome: {required: true},
							 senha: {required: true},
							 csenha: {required: true, equalTo: "#senha"}
						  },
                          messages: {
                             nome: {required: 'Informe o Nome'},
							 senha: {required: 'Informe Uma Senha'},
							 csenha: {required: 'Informe Uma Confirmação de Senha', equalTo: 'As duas senhas não conferem.'}
                          }
                       });
                    });
					
      </script>	 
</head>

<body>
	<div id="topo">Cerberus OS - Cadastro de Usuários</div>
    <div id="container">
    <br />
    <div id="usuario">
    <form name="usuario" id="cusuario" method="post" action="">
        <table width="75%">
            <tr height="50">
                <td>Nome:</td>
                <td><input type="text" class="form_txt" name="nome" size="60" /> </td>
            </tr>
    
            <tr height="50">
                <td>Senha:</td>
                <td><input type="password" class="form_txt" name="senha" id="senha" size="60" /></td> 
            </tr>
            
            <tr height="50">
                <td>Confirme a Senha:</td>
                <td><input type="password" class="form_txt" name="csenha" id="csenha" size="60" /></td> 
            </tr>
    
            <tr>
                <td></td>
                <td></td> 
            </tr>
            <tr height="50">
                <td colspan="2" width="100%">
                <center>
                	<input type="submit" name="cadastrar" value="Cadastrar" />
                    <a href="usuarios.php"><input type="button" name="voltar" value="Voltar" /></a>	
                </center>
                <td> 
            </tr>
        </table>
    </form>
    </div>
	</div>
</body>
</html>